package com.ifood.system.mapper;

import java.util.List;

import com.ifood.common.core.domain.entity.FoodOrderMaster;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单Mapper接口
 *
 * @author ifood
 * @date 2024-01-14
 */
@Mapper
public interface FoodOrderMasterMapper {
    /**
     * 查询订单
     *
     * @param orderId 订单主键
     * @return 订单
     */
    public FoodOrderMaster selectFoodOrderMasterByOrderId(String orderId);

    /**
     * 查询订单列表
     *
     * @param foodOrderMaster 订单
     * @return 订单集合
     */
    List<FoodOrderMaster> selectFoodOrderMasterList(FoodOrderMaster foodOrderMaster);

    /**
     * 新增订单
     *
     * @param foodOrderMaster 订单
     * @return 结果
     */
    int insertFoodOrderMaster(FoodOrderMaster foodOrderMaster);

    /**
     * 修改订单
     *
     * @param foodOrderMaster 订单
     * @return 结果
     */
    int updateFoodOrderMaster(FoodOrderMaster foodOrderMaster);

    /**
     * 删除订单
     *
     * @param orderId 订单主键
     * @return 结果
     */
    int deleteFoodOrderMasterByOrderId(String orderId);

    /**
     * 批量删除订单
     *
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteFoodOrderMasterByOrderIds(String[] orderIds);
}
